package org.test.javaCharacteristic.examj;

import org.junit.Test;

import junit.framework.TestCase;


/**
 * 一些考试题 的测试
 * @author Administrator
 *
 */
public class Examtest {
	
	private String a;
	
	
	public Examtest(String a ){
		this.a=a;
	}
	

	/**
	 *测试一下<<之类的东西 
	 */
	@Test
	public void testmove(){
		System.out.println("-----------");
		System.out.println(2<<3);
		System.out.println(4>>2);
		
		
		System.out.println("-----------");
		int[] inta = {1,2,3,23};
		for (int i : inta) {
			System.out.println(i);
			
		}
		
	}
	
	@Test
	public void test(){
		
		System.out.println("最终返回的为:"+tryreturn());
	}
	
	
	private int tryreturn(){
		
		try {
			int i;
			System.out.println("这里是try里面的语句,接下来是return 1");
			return 1;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			
		}finally{
			System.out.println("这里是finally里面的语句return 2");
			return 2;
		}
		
	}

	
	
	
}
